<?php
/**
 * Created by PhpStorm.
 * User: Edward
 * Date: 2019/6/3
 * Time: 14:18
 */

namespace app\Validate;


class CreateShopValidate extends BaseValidate {
    protected $rule = [
//        'name' => 'require|length:2,25',
//        'category' => 'require|checkIDs',
        'type' =>'require|isPositiveInteger',
        'province' =>'require|isPositiveInteger',
        'city' => 'require|isPositiveInteger',
        'area' => 'require|isPositiveInteger',
//        'logo' => 'require',
//        'address' => 'require',
        'corporate' => 'require|length:2,25',
        'phone' =>'require|mobile',
        'front_id_card' => 'require',
        'back_id_card' =>'require',
        'hand_id_card' =>'require'
    ];
    protected $message = [
        'name' => '商家名称不合适',
//        'category' => '商家主营类目必须是逗分割的正整数',
        'type' =>'商家类型参数不正确 ',
        'province' =>'省份参数错误',
        'city' => '城市参数错误',
        'area' =>'地区参数错误',
//        'logo' => '请上传商家logo',
        'address' => '商家详细地址错误',
        'corporate' => '请填写法人姓名',
        'phone' =>'请输入正确的手机号',
        'front_id_card' => '请上传身份证正面',
        'back_id_card' =>'请上传身份证背面',
        'hand_id_card' =>'请上传本人手持身份证'
    ];


}